import Layout from '@/page/index/'

export default [
  {
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [
      {
        path: 'index',
        name: '首页',
        meta: {
          i18n: 'dashboard'
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/wel/index')
      }
    ]
  },
  {
    path: '/user',
    component: Layout,
    redirect: '/user/index',
    children: [
      {
        path: 'user',
        name: '用户',
        meta: {
          i18n: 'dashboard'
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/user/index')
      }
    ]
  },
  {
    path: '/certificates',
    component: Layout,
    redirect: '/certificates/index',
    children: [
      {
        path: 'certificates',
        name: '证书',
        meta: {
          i18n: 'dashboard'
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/certificates/index')
      }
    ]
  },
  {
    path: '/topic',
    component: Layout,
    redirect: '/topic/index',
    children: [
      {
        path: 'topic',
        name: '话题',
        meta: {
          i18n: 'dashboard'
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/topic/index')
      }
    ]
  },
  {
    path: '/doctor',
    component: Layout,
    redirect: '/doctor/index',
    children: [
      {
        path: 'doctor',
        name: '话题',
        meta: {
          i18n: 'dashboard'
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/doctor/index')
      }
    ]
  },
  {
    path: '/dict-horizontal',
    component: Layout,
    redirect: '/dict-horizontal/index',
    children: [
      {
        path: 'index',
        name: '字典管理',
        meta: {
          i18n: 'dict'
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/util/dict-horizontal')
      }
    ]
  },
  {
    path: '/dict-vertical',
    component: Layout,
    redirect: '/dict-vertical/index',
    children: [
      {
        path: 'index',
        name: '字典管理',
        meta: {
          i18n: 'dict'
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/util/dict-vertical')
      }
    ]
  },
  {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [
      {
        path: 'index',
        name: '个人信息',
        meta: {
          i18n: 'info' // 配置多语言显示内容, 新增路由如果不需要多语言,就不用添加这个
        },
        component: () =>
          import(/* webpackChunkName: "views" */ '@/views/system/userinfo')
      }
    ]
  }
]
